<!-- 不含购物车的搜索框 -->
{{ define "base/base_search.html" }}
    <div class="search_bar clearfix">
        <a href="/ttsx/index" class="logo fl"><img src="/static/images/logo.png"></a>
        <div class="sub_page_name fl">|&nbsp;&nbsp;&nbsp;&nbsp;购物车</div>
        <div class="search_con fr">
            <form action="/ttsx/goods/search" method="get">
                <input type="text" class="input_text fl" name="goods_name" placeholder="搜索商品">
                <input type="submit" class="input_btn fr" name="" value="搜索">
            </form>
        </div>		
    </div>
{{ end }}


<!-- 含购物车的搜索框 -->
{{ define "base/base_search_car.html" }}
    <div class="search_bar clearfix">
        <a href="/ttsx/index" class="logo fl"><img src="/static/images/logo.png"></a>
        <div class="search_con fl">
            <form action="/ttsx/goods/search" method="get">
                <input type="text" class="input_text fl" name="goods_name" placeholder="搜索商品">
                <input type="submit" class="input_btn fr" name="" value="搜索">
            </form>
        </div>
        <div class="guest_cart fr">
            {{ if .Name }}
                <a href="/ttsx/cart/select" class="cart_name fl">我的购物车</a>
                <div class="goods_count fl" id="show_count">{{ .cartNum }}</div>
            {{ else }}
                <a href="/ttsx/cart/select" class="cart_name fl">我的购物车</a>
                <div class="goods_count fl" id="show_count">0</div>
            {{ end }}
        </div>
    </div>
{{ end }}
